# @author  : 沈海
# @time    : 2021/9/26 0026 15:43
# @function: the script is used to do something.
# @version : 
#   V1 
# -*-coding:utf-8-*-
from django.contrib import admin
from django.urls import path
from users.views import *
from home.views import *
from django.conf import settings
from django.conf.urls.static import static
# urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

urlpatterns = [
    path('',IndexView.as_view(), name='index'),
    path('register/',RegisterView.as_view(), name='register'), #注册路由
    path('imagecode/',ImgeView.as_view(), name='imagecode'),
    path('smscode/',SmsCodeView.as_view(), name='smcode'),
    path('login/',LoginView.as_view(), name='login'),
    path('logout/',LogoutView.as_view(), name='logout'),
    path('forgetpassword/',ForgetPasswordView.as_view(), name='forgetpassword'),
    path('usercenter/',UserCenterView.as_view(), name='usercenter'),
    path('writeblog/',WriteBlogView.as_view(), name='writeblog'),
]
